<hr>
<section id="comments">
  <ul class="list-group">
 <?php wp_list_comments( array(
    'callback'     =>  'bootstrapwp_comment',
  ) ); ?>
</section>


<?php
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
 
$comment_form_args = array(
    'class_submit'          => 'btn btn-primary mt-3',
    'comment_field'         => '<label for="comment" class="form-label">' . _x( 'Comment', 'noun' ) . '</label>
                                <textarea id="comment" name="comment" cols="45" rows="5" class="form-control" aria-required="true"></textarea>',
    'comment_notes_before'  => '',
    'comment_notes_after'   => ' ',
    // 默认的字段，用户未登录时显示的评论字段
    'fields'                => apply_filters( 'comment_form_default_fields', array(
    // 作者名称字段
    'author'                => '<label for="author" class="form-label">' .  __( 'Name', 'bootstrapwp' ) . '</label> ' .   ( $req ? '<span class="required help-inline">*</span>' : '' ) . 
                                 
                                '<input id="author"class="form-control" placeholder="author" name="author" type="text" value="' .  esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />',
                                /*
    // 电子邮件字段              
    'email'                 => '<label for="email" class="form-label">' .    __( 'Email', 'fenikso' ) .   '</label> ' . ( $req ? '<span class="required help-inline">*</span>' : '' ) . 
                                
                                '<input id="email" class="form-control" placeholder="email" name="email" type="text" value="' . 
                                 esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />' ,*/
    // 网站地址字段                            
    'url'                   => '<label for="url" class="form-label">' .     __( 'Website', 'bootstrapwp' ) .  '</label>' .   ( $req ? '<span class="required help-inline">*</span>' : '' ) . 
                                
                                '<input id="url" class="form-control"  placeholder="url"authorname="url" type="text" value="' . 
                                 esc_attr( $commenter['comment_author_url'] ) . '" size="30" />'


                                  ) 
    
) );
?>
 

<div class="pt-4"><?php comment_form( $comment_form_args ); ?></div>